﻿using Newtonsoft.Json;

namespace VueShopApi.Dtos
{
    public class PermissionDto
    {
        public int Id { get; set; }

        [JsonProperty]
        public string AuthName { get; set; }

        public string Path { get; set; }

        [JsonProperty]
        public List<PermissionDto> Children { get; set; }

        public int? Order { get; set; }
    }

    public class PermissionListDto
    {
        public int Id { get; set; }

        [JsonProperty]
        public string AuthName { get; set; }

        public string Path { get; set; }

        public string Level { get; set; }

        public string Pid { get; set; }
    }

    public class PermissionTreeDto
    {
        public int Id { get; set; }

        [JsonProperty]
        public string AuthName { get; set; }

        public string Path { get; set; }

        public int Level { get; set; }

        [JsonProperty]
        public string Pid { get; set; }

        [JsonProperty]
        public List<PermissionTreeDto> Children { get; set; }
    }
}
